package com.cyq.stock.mapper;

import com.cyq.stock.pojo.Stock;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface StockMapper {

    @Update("update stock_tbl set `count` = `count` -1 where product_id = #{product_id}")
    int reduct(Integer productId);

}
